package com.poixsonchat;

import java.util.logging.Logger;

import org.bukkit.plugin.java.JavaPlugin;

import com.poixsonchat.listeners.CommandsListener;


public class PoiXsonChat extends JavaPlugin {

	public final boolean isDev = true;

	public static String logPrefix  = "[PoiXsonChat] ";
//	public static String chatPrefix = ChatColor.DARK_GREEN+"["+ChatColor.WHITE+"Chat"+ChatColor.DARK_GREEN+"] ";
	public static final Logger log = Logger.getLogger("Minecraft");

	public Metrics metrics;

	public CommandsListener Commands = new CommandsListener(this);

	public void onEnable() {
		//currentVersion = Double.valueOf(getDescription().getVersion().split("-")[0].replaceFirst("\\.", ""));
		//newVersion = updateCheck(0.64D);
		//log.info("CURRENT: " + currentVersion.toString());
		//log.info("NEW" + newVersion.toString());

		if(isDev) {
			log.info("******************************");
			log.info("*** Running in dev mode!!! ***");
			log.info("******************************");
		}

		log.info(logPrefix + "PoiXsonChat is initializing.");

		getCommand("chat").setExecutor(Commands);
	}












}
